package com.ruoyi.cmdb.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 服务器对象 tb_computer
 *
 * @author ruoyi
 * @date 2023-01-26
 */
public class Computer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 主机名 */
    @Excel(name = "主机名")
    private String name;

    /** ip */
    @Excel(name = "ip")
    private String ip;

    /** cpu */
    @Excel(name = "cpu")
    private String cpu;

    /** 内存 */
    @Excel(name = "内存")
    private String memory;

    /** idc */
    @Excel(name = "idc")
    private String idc;

    /** 环境 （0dev 1test 2prev 3prod） */
    @Excel(name = "环境 ", readConverterExp = "0=dev,1=test,2=prev,3=prod")
    private String env;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 型号 */
    @Excel(name = "型号")
    private String version;

    /** sn号 */
    @Excel(name = "sn号")
    private String sn;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setIp(String ip)
    {
        this.ip = ip;
    }

    public String getIp()
    {
        return ip;
    }
    public void setCpu(String cpu)
    {
        this.cpu = cpu;
    }

    public String getCpu()
    {
        return cpu;
    }
    public void setMemory(String memory)
    {
        this.memory = memory;
    }

    public String getMemory()
    {
        return memory;
    }
    public void setIdc(String idc)
    {
        this.idc = idc;
    }

    public String getIdc()
    {
        return idc;
    }
    public void setEnv(String env)
    {
        this.env = env;
    }

    public String getEnv()
    {
        return env;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setVersion(String version)
    {
        this.version = version;
    }

    public String getVersion()
    {
        return version;
    }
    public void setSn(String sn)
    {
        this.sn = sn;
    }

    public String getSn()
    {
        return sn;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("ip", getIp())
            .append("cpu", getCpu())
            .append("memory", getMemory())
            .append("idc", getIdc())
            .append("env", getEnv())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("status", getStatus())
            .append("version", getVersion())
            .append("sn", getSn())
            .toString();
    }
}
